import { Entity, Column } from 'typeorm';
import { BaseEntity } from './baseEntity';

/**
 * 站点记录表
 */

@Entity()
export class TSite extends BaseEntity {
  @Column({ type: 'varchar', length: 255, name: 'title', comment: '名称' })
  title: string;

  @Column({ type: 'varchar', name: 'description', comment: '详情' })
  description: string;

  // 访问量
  @Column({ type: 'int', name: 'views', comment: '访问量' })
  views: number;

  // 图标
  @Column({ type: 'varchar', name: 'icon', comment: '图标' })
  icon: string;

  // 跳转链接
  @Column({ type: 'varchar', name: 'url', comment: '跳转链接' })
  url: string;
}
